镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

tools: skip running test-shared on deps changes - #60433

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
aduh95:shared-deps-skip
Oct 30, 2025
Merged

nodejs-github-bot merged 1 commit into
nodejs:mainfrom
aduh95:shared-deps-skip

Conversation

@aduh95

@aduh95 aduh95 commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

Running test-shared.yml for changes on folder that it doesn't use is pointless, it can't affect it as those do not even make it to the slim tarball it uses:

node/Makefile

Lines 1221 to 1239 in 6176222

$(RM) -r $(TARNAME)/deps/corepack
$(RM) $(TARNAME)/test/parallel/test-corepack-version.js
ifeq ($(SKIP_SHARED_DEPS), 1)
$(RM) -r $(TARNAME)/deps/ada
$(RM) -r $(TARNAME)/deps/brotli
$(RM) -r $(TARNAME)/deps/cares
$(RM) -r $(TARNAME)/deps/icu-small
$(RM) -r $(TARNAME)/deps/icu-tmp
$(RM) -r $(TARNAME)/deps/llhttp
$(RM) -r $(TARNAME)/deps/nghttp2
$(RM) -r $(TARNAME)/deps/ngtcp2
find $(TARNAME)/deps/openssl -maxdepth 1 -type f ! -name 'nodejs-openssl.cnf' -exec $(RM) {} +
find $(TARNAME)/deps/openssl -mindepth 1 -maxdepth 1 -type d -exec $(RM) -r {} +
$(RM) -r $(TARNAME)/deps/simdjson
$(RM) -r $(TARNAME)/deps/sqlite
$(RM) -r $(TARNAME)/deps/uv
$(RM) -r $(TARNAME)/deps/uvwasi
$(RM) -r $(TARNAME)/deps/zlib
$(RM) -r $(TARNAME)/deps/zstd

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Oct 27, 2025
@aduh95 aduh95 added dont-land-on-v20.x dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. labels Oct 27, 2025
- deps/icu-tmp/**
- deps/llhttp/**
- deps/nghttp2/**
- deps/ngtcp2/**

@legendecas legendecas Oct 27, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm is not a shared library but it is not bundled into node binary as well.

Suggested change
- deps/ngtcp2/**
- deps/ngtcp2/**
- deps/npm/**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But wouldn't it be better to still check npm still works when Node.js is built with shared libraries?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine either way, both of you are making valid points

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@legendecas can you clarify whether this is a blocking concern?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry, this is not a blocking concern. I was trying to understand if it can be optimized to exclude npm as well.

@joyeecheung joyeecheung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to run it on npm upgrades, or I think the npm tests we have in core don't really cover enough of npm for this, but I'm also fine with just giving it a try - if it leads to whatever issue we can always just add it to the ignore list.

@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. labels Oct 30, 2025

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 30, 2025
@nodejs-github-bot
nodejs-github-bot merged commit 515ca29 into nodejs:main Oct 30, 2025
43 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 515ca29

@aduh95
aduh95 deleted the shared-deps-skip branch October 30, 2025 13:14
aduh95 added a commit that referenced this pull request Nov 5, 2025
PR-URL: #60433
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants